package com.struts.action;

import java.util.List;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.struts.pojo.Rectangle;

public class ConverterAction extends ActionSupport{
	
	private Rectangle rectangle ;
	
	private List<String> hobbies ;
	
	public List<String> getHobbies() {
		return hobbies;
	}
	public void setHobbies(List<String> hobbies) {
		this.hobbies = hobbies;
	}
	public Rectangle getRectangle() {
		return rectangle;
	}
	public void setRectangle(Rectangle rectangle) {
		this.rectangle = rectangle;
	}
	
	public String rectangleConverter() {
		System.out.println(rectangle);
		return SUCCESS ;
	}
	
	public String hobbiesConverter() {
		System.out.println("爱好：");
		for (String hobby : hobbies) {
			System.out.println(hobby);
		}
		return SUCCESS ;
	}
	

}
